﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zmMoniter
{
    class Grid
    {
        public  float fLX;
        public  float fTY;
        private int iOverLay = -9999;
        private float fDepth = -1;
        private float fTime = -1;
        public int iQualified = -1;
    
        public Grid(float fX, float fY)
        {
            fLX = fX;
            fTY = fY;
        }
        public void setOverLay(int iFlag)
        {
            if (iOverLay > 0 && iFlag > 0)
                iOverLay++;
            else
                iOverLay = iFlag;
        }
        public void setDepth(float fFlag)
        {
            fDepth = fDepth < fFlag ? fFlag : fDepth;
        }
        public void setTime(float fFlag)
        {
            fTime = fTime < fFlag ? fFlag : fTime;
        }
        public void setQualified(int iFlag)
        {
            iQualified = iFlag;
        }
        public int getQualified(float fFlag)
        {
            return iQualified;
        }
        public int getOverLay()
        {
           return iOverLay ;
        }
        public float getDepth()
        {
            return fDepth;
        }
        public float getTime()
        {
            return fTime;
        }
    }
}
